package com.uobgroup.ews.uam.core.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

import org.springframework.beans.factory.annotation.Configurable;

@Entity
@Configurable
public class CountryLocation extends BaseEntity {

   @OneToOne
   private Reference countryCode;

   @OneToOne
   private Reference location;

   private boolean branchIndicator;

   @Id
   @GeneratedValue(strategy = GenerationType.AUTO)
   @Column(name = "id")
   private Long id;

   public Long getId() {
      return this.id;
   }

   public void setId(Long id) {
      this.id = id;
   }

   public Reference getCountryCode() {
      return this.countryCode;
   }

   public void setCountryCode(Reference countryCode) {
      this.countryCode = countryCode;
   }

   public Reference getLocation() {
      return this.location;
   }

   public void setLocation(Reference location) {
      this.location = location;
   }

   public boolean isBranchIndicator() {
      return this.branchIndicator;
   }

   public void setBranchIndicator(boolean branchIndicator) {
      this.branchIndicator = branchIndicator;
   }
}
